/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ssi.mrms.dao;

import com.ssi.mrms.model.DataTableModel;
import com.ssi.mrms.model.RMwnltModel;
import java.util.List;

/**
 *
 * @author jirapatjantsakool
 */
public interface WarningLetterDao {
    public List<RMwnltModel> findAll();

    public RMwnltModel findById(Integer id);

    public void create(RMwnltModel model) throws Exception;

    public boolean update(RMwnltModel model);

    public boolean delete(RMwnltModel model);
    
    public DataTableModel<RMwnltModel> findDataTable(RMwnltModel warningLetter, int iDisplayStart, int iDisplayLength);

}
